Integrand size = 41, antiderivative size = 274 \[ \int \cos ^2(c+d x) (a+b \sec (c+d x))^4 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {1}{2} a^2 \left (12 A b^2+8 a b B+a^2 (A+2 C)\right ) x+\frac {b \left (12 a^2 b B+b^3 B+8 a^3 C+4 a b^2 (2 A+C)\right ) \text {arctanh}(\sin (c+d x))}{2 d}+\frac {(2 A b+a B) (a+b \sec (c+d x))^3 \sin (c+d x)}{d}+\frac {A \cos (c+d x) (a+b \sec (c+d x))^4 \sin (c+d x)}{2 d}-\frac {b \left (12 a^3 B-24 a b^2 B+a^2 b (39 A-34 C)-2 b^3 (3 A+2 C)\right ) \tan (c+d x)}{6 d}-\frac {b^2 \left (6 a^2 B-3 b^2 B+2 a b (9 A-4 C)\right ) \sec (c+d x) \tan (c+d x)}{6 d}-\frac {b (15 A b+6 a B-2 b C) (a+b \sec (c+d x))^2 \tan (c+d x)}{6 d} \]
[Out]
Time = 0.77 (sec) , antiderivative size = 274, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.146, Rules used = {4179, 4141, 4133, 3855, 3852, 8} \[ \int \cos ^2(c+d x) (a+b \sec (c+d x))^4 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=-\frac {b^2 \tan (c+d x) \sec (c+d x) \left (6 a^2 B+2 a b (9 A-4 C)-3 b^2 B\right )}{6 d}+\frac {1}{2} a^2 x \left (a^2 (A+2 C)+8 a b B+12 A b^2\right )+\frac {b \left (8 a^3 C+12 a^2 b B+4 a b^2 (2 A+C)+b^3 B\right ) \text {arctanh}(\sin (c+d x))}{2 d}-\frac {b \tan (c+d x) \left (12 a^3 B+a^2 b (39 A-34 C)-24 a b^2 B-2 b^3 (3 A+2 C)\right )}{6 d}-\frac {b \tan (c+d x) (6 a B+15 A b-2 b C) (a+b \sec (c+d x))^2}{6 d}+\frac {(a B+2 A b) \sin (c+d x) (a+b \sec (c+d x))^3}{d}+\frac {A \sin (c+d x) \cos (c+d x) (a+b \sec (c+d x))^4}{2 d} \]
[In]
[Out]
Rule 8
Rule 3852
Rule 3855
Rule 4133
Rule 4141
Rule 4179
Rubi steps \begin{align*} \text {integral}& = \frac {A \cos (c+d x) (a+b \sec (c+d x))^4 \sin (c+d x)}{2 d}+\frac {1}{2} \int \cos (c+d x) (a+b \sec (c+d x))^3 \left (2 (2 A b+a B)+(2 b B+a (A+2 C)) \sec (c+d x)-b (3 A-2 C) \sec ^2(c+d x)\right ) \, dx \\ & = \frac {(2 A b+a B) (a+b \sec (c+d x))^3 \sin (c+d x)}{d}+\frac {A \cos (c+d x) (a+b \sec (c+d x))^4 \sin (c+d x)}{2 d}+\frac {1}{2} \int (a+b \sec (c+d x))^2 \left (12 A b^2+8 a b B+a^2 (A+2 C)-2 b (a A-b B-2 a C) \sec (c+d x)-b (15 A b+6 a B-2 b C) \sec ^2(c+d x)\right ) \, dx \\ & = \frac {(2 A b+a B) (a+b \sec (c+d x))^3 \sin (c+d x)}{d}+\frac {A \cos (c+d x) (a+b \sec (c+d x))^4 \sin (c+d x)}{2 d}-\frac {b (15 A b+6 a B-2 b C) (a+b \sec (c+d x))^2 \tan (c+d x)}{6 d}+\frac {1}{6} \int (a+b \sec (c+d x)) \left (3 a \left (12 A b^2+8 a b B+a^2 (A+2 C)\right )+b \left (18 a b B-3 a^2 (A-6 C)+2 b^2 (3 A+2 C)\right ) \sec (c+d x)-2 b \left (18 a A b+6 a^2 B-3 b^2 B-8 a b C\right ) \sec ^2(c+d x)\right ) \, dx \\ & = \frac {(2 A b+a B) (a+b \sec (c+d x))^3 \sin (c+d x)}{d}+\frac {A \cos (c+d x) (a+b \sec (c+d x))^4 \sin (c+d x)}{2 d}-\frac {b^2 \left (6 a^2 B-3 b^2 B+2 a b (9 A-4 C)\right ) \sec (c+d x) \tan (c+d x)}{6 d}-\frac {b (15 A b+6 a B-2 b C) (a+b \sec (c+d x))^2 \tan (c+d x)}{6 d}+\frac {1}{12} \int \left (6 a^2 \left (12 A b^2+8 a b B+a^2 (A+2 C)\right )+6 b \left (12 a^2 b B+b^3 B+8 a^3 C+4 a b^2 (2 A+C)\right ) \sec (c+d x)-2 b \left (12 a^3 B-24 a b^2 B-2 b^3 (3 A+2 C)+a^2 (39 A b-34 b C)\right ) \sec ^2(c+d x)\right ) \, dx \\ & = \frac {1}{2} a^2 \left (12 A b^2+8 a b B+a^2 (A+2 C)\right ) x+\frac {(2 A b+a B) (a+b \sec (c+d x))^3 \sin (c+d x)}{d}+\frac {A \cos (c+d x) (a+b \sec (c+d x))^4 \sin (c+d x)}{2 d}-\frac {b^2 \left (6 a^2 B-3 b^2 B+2 a b (9 A-4 C)\right ) \sec (c+d x) \tan (c+d x)}{6 d}-\frac {b (15 A b+6 a B-2 b C) (a+b \sec (c+d x))^2 \tan (c+d x)}{6 d}+\frac {1}{2} \left (b \left (12 a^2 b B+b^3 B+8 a^3 C+4 a b^2 (2 A+C)\right )\right ) \int \sec (c+d x) \, dx-\frac {1}{6} \left (b \left (12 a^3 B-24 a b^2 B+a^2 b (39 A-34 C)-2 b^3 (3 A+2 C)\right )\right ) \int \sec ^2(c+d x) \, dx \\ & = \frac {1}{2} a^2 \left (12 A b^2+8 a b B+a^2 (A+2 C)\right ) x+\frac {b \left (12 a^2 b B+b^3 B+8 a^3 C+4 a b^2 (2 A+C)\right ) \text {arctanh}(\sin (c+d x))}{2 d}+\frac {(2 A b+a B) (a+b \sec (c+d x))^3 \sin (c+d x)}{d}+\frac {A \cos (c+d x) (a+b \sec (c+d x))^4 \sin (c+d x)}{2 d}-\frac {b^2 \left (6 a^2 B-3 b^2 B+2 a b (9 A-4 C)\right ) \sec (c+d x) \tan (c+d x)}{6 d}-\frac {b (15 A b+6 a B-2 b C) (a+b \sec (c+d x))^2 \tan (c+d x)}{6 d}+\frac {\left (b \left (12 a^3 B-24 a b^2 B+a^2 b (39 A-34 C)-2 b^3 (3 A+2 C)\right )\right ) \text {Subst}(\int 1 \, dx,x,-\tan (c+d x))}{6 d} \\ & = \frac {1}{2} a^2 \left (12 A b^2+8 a b B+a^2 (A+2 C)\right ) x+\frac {b \left (12 a^2 b B+b^3 B+8 a^3 C+4 a b^2 (2 A+C)\right ) \text {arctanh}(\sin (c+d x))}{2 d}+\frac {(2 A b+a B) (a+b \sec (c+d x))^3 \sin (c+d x)}{d}+\frac {A \cos (c+d x) (a+b \sec (c+d x))^4 \sin (c+d x)}{2 d}-\frac {b \left (12 a^3 B-24 a b^2 B+a^2 b (39 A-34 C)-2 b^3 (3 A+2 C)\right ) \tan (c+d x)}{6 d}-\frac {b^2 \left (6 a^2 B-3 b^2 B+2 a b (9 A-4 C)\right ) \sec (c+d x) \tan (c+d x)}{6 d}-\frac {b (15 A b+6 a B-2 b C) (a+b \sec (c+d x))^2 \tan (c+d x)}{6 d} \\ \end{align*}
Time = 7.50 (sec) , antiderivative size = 348, normalized size of antiderivative = 1.27 \[ \int \cos ^2(c+d x) (a+b \sec (c+d x))^4 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {\sec ^3(c+d x) \left (36 a^2 \left (12 A b^2+8 a b B+a^2 (A+2 C)\right ) (c+d x) \cos (c+d x)+12 a^2 \left (12 A b^2+8 a b B+a^2 (A+2 C)\right ) (c+d x) \cos (3 (c+d x))-48 b \left (12 a^2 b B+b^3 B+8 a^3 C+4 a b^2 (2 A+C)\right ) \cos ^3(c+d x) \left (\log \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )-\log \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )\right )+2 \left (9 a^4 A+24 A b^4+96 a b^3 B+144 a^2 b^2 C+32 b^4 C+12 \left (12 a^3 A b+3 a^4 B+2 b^4 B+8 a b^3 C\right ) \cos (c+d x)+4 \left (3 a^4 A+6 A b^4+24 a b^3 B+36 a^2 b^2 C+4 b^4 C\right ) \cos (2 (c+d x))+48 a^3 A b \cos (3 (c+d x))+12 a^4 B \cos (3 (c+d x))+3 a^4 A \cos (4 (c+d x))\right ) \sin (c+d x)\right )}{96 d} \]
[In]
[Out]
Time = 1.30 (sec) , antiderivative size = 295, normalized size of antiderivative = 1.08
method | result | size |
derivativedivides | \(\frac {a^{4} A \left (\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )+B \,a^{4} \sin \left (d x +c \right )+a^{4} C \left (d x +c \right )+4 A \,a^{3} b \sin \left (d x +c \right )+4 B \,a^{3} b \left (d x +c \right )+4 a^{3} b C \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )+6 A \,a^{2} b^{2} \left (d x +c \right )+6 B \,a^{2} b^{2} \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )+6 C \,a^{2} b^{2} \tan \left (d x +c \right )+4 a A \,b^{3} \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )+4 B a \,b^{3} \tan \left (d x +c \right )+4 C a \,b^{3} \left (\frac {\sec \left (d x +c \right ) \tan \left (d x +c \right )}{2}+\frac {\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )+A \tan \left (d x +c \right ) b^{4}+B \,b^{4} \left (\frac {\sec \left (d x +c \right ) \tan \left (d x +c \right )}{2}+\frac {\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )-C \,b^{4} \left (-\frac {2}{3}-\frac {\sec \left (d x +c \right )^{2}}{3}\right ) \tan \left (d x +c \right )}{d}\) | \(295\) |
default | \(\frac {a^{4} A \left (\frac {\sin \left (d x +c \right ) \cos \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )+B \,a^{4} \sin \left (d x +c \right )+a^{4} C \left (d x +c \right )+4 A \,a^{3} b \sin \left (d x +c \right )+4 B \,a^{3} b \left (d x +c \right )+4 a^{3} b C \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )+6 A \,a^{2} b^{2} \left (d x +c \right )+6 B \,a^{2} b^{2} \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )+6 C \,a^{2} b^{2} \tan \left (d x +c \right )+4 a A \,b^{3} \ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )+4 B a \,b^{3} \tan \left (d x +c \right )+4 C a \,b^{3} \left (\frac {\sec \left (d x +c \right ) \tan \left (d x +c \right )}{2}+\frac {\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )+A \tan \left (d x +c \right ) b^{4}+B \,b^{4} \left (\frac {\sec \left (d x +c \right ) \tan \left (d x +c \right )}{2}+\frac {\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )}{2}\right )-C \,b^{4} \left (-\frac {2}{3}-\frac {\sec \left (d x +c \right )^{2}}{3}\right ) \tan \left (d x +c \right )}{d}\) | \(295\) |
parallelrisch | \(\frac {-32 \left (a^{3} C +\frac {3 B \,a^{2} b}{2}+a \left (A +\frac {C}{2}\right ) b^{2}+\frac {B \,b^{3}}{8}\right ) b \left (\cos \left (3 d x +3 c \right )+3 \cos \left (d x +c \right )\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )+32 \left (a^{3} C +\frac {3 B \,a^{2} b}{2}+a \left (A +\frac {C}{2}\right ) b^{2}+\frac {B \,b^{3}}{8}\right ) b \left (\cos \left (3 d x +3 c \right )+3 \cos \left (d x +c \right )\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )+4 d \,a^{2} x \left (12 A \,b^{2}+8 B a b +a^{2} \left (A +2 C \right )\right ) \cos \left (3 d x +3 c \right )+\left (3 a^{4} A +48 C \,a^{2} b^{2}+32 B a \,b^{3}+8 b^{4} \left (A +\frac {2 C}{3}\right )\right ) \sin \left (3 d x +3 c \right )+8 \left (4 A \,a^{3} b +B \,a^{4}+B \,b^{4}+4 C a \,b^{3}\right ) \sin \left (2 d x +2 c \right )+4 \left (4 A \,a^{3} b +B \,a^{4}\right ) \sin \left (4 d x +4 c \right )+a^{4} A \sin \left (5 d x +5 c \right )+12 d \,a^{2} x \left (12 A \,b^{2}+8 B a b +a^{2} \left (A +2 C \right )\right ) \cos \left (d x +c \right )+2 \sin \left (d x +c \right ) \left (a^{4} A +24 C \,a^{2} b^{2}+16 B a \,b^{3}+4 b^{4} \left (A +2 C \right )\right )}{8 d \left (\cos \left (3 d x +3 c \right )+3 \cos \left (d x +c \right )\right )}\) | \(379\) |
risch | \(\frac {a^{4} A x}{2}+6 A \,a^{2} b^{2} x +4 B \,a^{3} b x +a^{4} x C +\frac {2 i A \,a^{3} b \,{\mathrm e}^{-i \left (d x +c \right )}}{d}-\frac {i a^{4} A \,{\mathrm e}^{2 i \left (d x +c \right )}}{8 d}-\frac {i b^{2} \left (3 B \,b^{2} {\mathrm e}^{5 i \left (d x +c \right )}+12 C a b \,{\mathrm e}^{5 i \left (d x +c \right )}-6 A \,b^{2} {\mathrm e}^{4 i \left (d x +c \right )}-24 B a b \,{\mathrm e}^{4 i \left (d x +c \right )}-36 C \,a^{2} {\mathrm e}^{4 i \left (d x +c \right )}-12 A \,b^{2} {\mathrm e}^{2 i \left (d x +c \right )}-48 B a b \,{\mathrm e}^{2 i \left (d x +c \right )}-72 C \,a^{2} {\mathrm e}^{2 i \left (d x +c \right )}-12 C \,b^{2} {\mathrm e}^{2 i \left (d x +c \right )}-3 B \,b^{2} {\mathrm e}^{i \left (d x +c \right )}-12 C b a \,{\mathrm e}^{i \left (d x +c \right )}-6 A \,b^{2}-24 B a b -36 C \,a^{2}-4 C \,b^{2}\right )}{3 d \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{3}}+\frac {i a^{4} A \,{\mathrm e}^{-2 i \left (d x +c \right )}}{8 d}-\frac {i {\mathrm e}^{i \left (d x +c \right )} B \,a^{4}}{2 d}-\frac {2 i A \,a^{3} b \,{\mathrm e}^{i \left (d x +c \right )}}{d}+\frac {i {\mathrm e}^{-i \left (d x +c \right )} B \,a^{4}}{2 d}+\frac {4 a \,b^{3} \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right ) A}{d}+\frac {6 \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right ) B \,a^{2} b^{2}}{d}+\frac {\ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right ) B \,b^{4}}{2 d}+\frac {4 a^{3} b \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right ) C}{d}+\frac {2 a \,b^{3} \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right ) C}{d}-\frac {4 a \,b^{3} \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right ) A}{d}-\frac {6 \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right ) B \,a^{2} b^{2}}{d}-\frac {\ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right ) B \,b^{4}}{2 d}-\frac {4 a^{3} b \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right ) C}{d}-\frac {2 a \,b^{3} \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right ) C}{d}\) | \(588\) |
norman | \(\frac {\left (-6 A \,a^{2} b^{2}-\frac {1}{2} a^{4} A -4 B \,a^{3} b -a^{4} C \right ) x +\left (-30 A \,a^{2} b^{2}-\frac {5}{2} a^{4} A -20 B \,a^{3} b -5 a^{4} C \right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}+\left (-18 A \,a^{2} b^{2}-\frac {3}{2} a^{4} A -12 B \,a^{3} b -3 a^{4} C \right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{12}+\left (-6 A \,a^{2} b^{2}-\frac {1}{2} a^{4} A -4 B \,a^{3} b -a^{4} C \right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\left (6 A \,a^{2} b^{2}+\frac {1}{2} a^{4} A +4 B \,a^{3} b +a^{4} C \right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{10}+\left (6 A \,a^{2} b^{2}+\frac {1}{2} a^{4} A +4 B \,a^{3} b +a^{4} C \right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{14}+\left (18 A \,a^{2} b^{2}+\frac {3}{2} a^{4} A +12 B \,a^{3} b +3 a^{4} C \right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+\left (30 A \,a^{2} b^{2}+\frac {5}{2} a^{4} A +20 B \,a^{3} b +5 a^{4} C \right ) x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{8}+\frac {4 \left (15 a^{4} A -6 A \,b^{4}-24 B a \,b^{3}-36 C \,a^{2} b^{2}-2 C \,b^{4}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{7}}{3 d}+\frac {2 \left (9 a^{4} A -48 A \,a^{3} b +6 A \,b^{4}-12 B \,a^{4}+24 B a \,b^{3}+36 C \,a^{2} b^{2}+2 C \,b^{4}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{11}}{3 d}+\frac {2 \left (9 a^{4} A +48 A \,a^{3} b +6 A \,b^{4}+12 B \,a^{4}+24 B a \,b^{3}+36 C \,a^{2} b^{2}+2 C \,b^{4}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}{3 d}-\frac {\left (a^{4} A -8 A \,a^{3} b +2 A \,b^{4}-2 B \,a^{4}+8 B a \,b^{3}-B \,b^{4}+12 C \,a^{2} b^{2}-4 C a \,b^{3}+2 C \,b^{4}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{13}}{d}-\frac {\left (a^{4} A +8 A \,a^{3} b +2 A \,b^{4}+2 B \,a^{4}+8 B a \,b^{3}+B \,b^{4}+12 C \,a^{2} b^{2}+4 C a \,b^{3}+2 C \,b^{4}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{d}-\frac {\left (15 a^{4} A -40 A \,a^{3} b -2 A \,b^{4}-10 B \,a^{4}-8 B a \,b^{3}+3 B \,b^{4}-12 C \,a^{2} b^{2}+12 C a \,b^{3}-2 C \,b^{4}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{9}}{d}-\frac {\left (15 a^{4} A +40 A \,a^{3} b -2 A \,b^{4}+10 B \,a^{4}-8 B a \,b^{3}-3 B \,b^{4}-12 C \,a^{2} b^{2}-12 C a \,b^{3}-2 C \,b^{4}\right ) \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}}{d}}{\left (1+\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}\right )^{2} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right )^{5}}-\frac {b \left (8 a A \,b^{2}+12 B \,a^{2} b +B \,b^{3}+8 a^{3} C +4 C a \,b^{2}\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{2 d}+\frac {b \left (8 a A \,b^{2}+12 B \,a^{2} b +B \,b^{3}+8 a^{3} C +4 C a \,b^{2}\right ) \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{2 d}\) | \(941\) |
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 269, normalized size of antiderivative = 0.98 \[ \int \cos ^2(c+d x) (a+b \sec (c+d x))^4 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {6 \, {\left ({\left (A + 2 \, C\right )} a^{4} + 8 \, B a^{3} b + 12 \, A a^{2} b^{2}\right )} d x \cos \left (d x + c\right )^{3} + 3 \, {\left (8 \, C a^{3} b + 12 \, B a^{2} b^{2} + 4 \, {\left (2 \, A + C\right )} a b^{3} + B b^{4}\right )} \cos \left (d x + c\right )^{3} \log \left (\sin \left (d x + c\right ) + 1\right ) - 3 \, {\left (8 \, C a^{3} b + 12 \, B a^{2} b^{2} + 4 \, {\left (2 \, A + C\right )} a b^{3} + B b^{4}\right )} \cos \left (d x + c\right )^{3} \log \left (-\sin \left (d x + c\right ) + 1\right ) + 2 \, {\left (3 \, A a^{4} \cos \left (d x + c\right )^{4} + 2 \, C b^{4} + 6 \, {\left (B a^{4} + 4 \, A a^{3} b\right )} \cos \left (d x + c\right )^{3} + 2 \, {\left (18 \, C a^{2} b^{2} + 12 \, B a b^{3} + {\left (3 \, A + 2 \, C\right )} b^{4}\right )} \cos \left (d x + c\right )^{2} + 3 \, {\left (4 \, C a b^{3} + B b^{4}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{12 \, d \cos \left (d x + c\right )^{3}} \]
[In]
[Out]
Timed out. \[ \int \cos ^2(c+d x) (a+b \sec (c+d x))^4 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\text {Timed out} \]
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 335, normalized size of antiderivative = 1.22 \[ \int \cos ^2(c+d x) (a+b \sec (c+d x))^4 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {3 \, {\left (2 \, d x + 2 \, c + \sin \left (2 \, d x + 2 \, c\right )\right )} A a^{4} + 12 \, {\left (d x + c\right )} C a^{4} + 48 \, {\left (d x + c\right )} B a^{3} b + 72 \, {\left (d x + c\right )} A a^{2} b^{2} + 4 \, {\left (\tan \left (d x + c\right )^{3} + 3 \, \tan \left (d x + c\right )\right )} C b^{4} - 12 \, C a b^{3} {\left (\frac {2 \, \sin \left (d x + c\right )}{\sin \left (d x + c\right )^{2} - 1} - \log \left (\sin \left (d x + c\right ) + 1\right ) + \log \left (\sin \left (d x + c\right ) - 1\right )\right )} - 3 \, B b^{4} {\left (\frac {2 \, \sin \left (d x + c\right )}{\sin \left (d x + c\right )^{2} - 1} - \log \left (\sin \left (d x + c\right ) + 1\right ) + \log \left (\sin \left (d x + c\right ) - 1\right )\right )} + 24 \, C a^{3} b {\left (\log \left (\sin \left (d x + c\right ) + 1\right ) - \log \left (\sin \left (d x + c\right ) - 1\right )\right )} + 36 \, B a^{2} b^{2} {\left (\log \left (\sin \left (d x + c\right ) + 1\right ) - \log \left (\sin \left (d x + c\right ) - 1\right )\right )} + 24 \, A a b^{3} {\left (\log \left (\sin \left (d x + c\right ) + 1\right ) - \log \left (\sin \left (d x + c\right ) - 1\right )\right )} + 12 \, B a^{4} \sin \left (d x + c\right ) + 48 \, A a^{3} b \sin \left (d x + c\right ) + 72 \, C a^{2} b^{2} \tan \left (d x + c\right ) + 48 \, B a b^{3} \tan \left (d x + c\right ) + 12 \, A b^{4} \tan \left (d x + c\right )}{12 \, d} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 550 vs. \(2 (262) = 524\).
Time = 0.39 (sec) , antiderivative size = 550, normalized size of antiderivative = 2.01 \[ \int \cos ^2(c+d x) (a+b \sec (c+d x))^4 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {3 \, {\left (A a^{4} + 2 \, C a^{4} + 8 \, B a^{3} b + 12 \, A a^{2} b^{2}\right )} {\left (d x + c\right )} + 3 \, {\left (8 \, C a^{3} b + 12 \, B a^{2} b^{2} + 8 \, A a b^{3} + 4 \, C a b^{3} + B b^{4}\right )} \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1 \right |}\right ) - 3 \, {\left (8 \, C a^{3} b + 12 \, B a^{2} b^{2} + 8 \, A a b^{3} + 4 \, C a b^{3} + B b^{4}\right )} \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1 \right |}\right ) - \frac {6 \, {\left (A a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 2 \, B a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 8 \, A a^{3} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - A a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 2 \, B a^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 8 \, A a^{3} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )}^{2}} - \frac {2 \, {\left (36 \, C a^{2} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 24 \, B a b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 12 \, C a b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 6 \, A b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 3 \, B b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 6 \, C b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 72 \, C a^{2} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 48 \, B a b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 12 \, A b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 4 \, C b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 36 \, C a^{2} b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 24 \, B a b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 12 \, C a b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 6 \, A b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 3 \, B b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 6 \, C b^{4} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}^{3}}}{6 \, d} \]
[In]
[Out]
Time = 21.25 (sec) , antiderivative size = 4849, normalized size of antiderivative = 17.70 \[ \int \cos ^2(c+d x) (a+b \sec (c+d x))^4 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\text {Too large to display} \]
[In]
[Out]